#引入module01.py 模块
from tkinter import *
import math
from  mymodule  import canvas_func_common  as my_canvas

def fx(x):
    return math.cos(x)
def fy(x):
    return math.sin(x)

START = -5.0
END =5.0 
DELTA = 0.01

X_Fix=40
Y_Fix=40

tk = Tk()
canvas = Canvas(tk,width=my_canvas.MAX_X,height=my_canvas.MAX_Y,bd=0)
canvas.pack()

my_canvas.draw_int(canvas)
x = START
while x < END:
    #print(x,f(x))
    my_canvas.plot(canvas,fx(x),fy(x))
    x = x+ DELTA

tk.mainloop()
    